﻿body {
    font-family: sans-serif;
    background-color: rgb(36, 35, 30);
}

form {
    margin: 3rem auto;
    width: 90%;
    max-width: 50rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 1rem;
    background-color: rgb(246, 245, 201);
}

.control {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

input {
    font: inherit;
    font-size: 1.15rem;
    padding: 0.35rem;
    border: 1px solid rgb(204, 204, 204);
    background-color: rgb(252, 249, 233);
    color: rgb(53, 51, 39);
    width: 25rem;
    border-radius: 4px;
    margin-right: 1rem;
    vertical-align: middle;
}

input:focus {
    background-color: rgb(253, 245, 196);
}

button {
    font: inherit;
    background-color: rgb(209, 184, 23);
    border: 1px solid rgb(209, 184, 23);
    color: rgb(44, 43, 36);
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
}

button:hover {
    background-color: rgb(209, 197, 23);
    border-color: rgb(209, 197, 23)
}

#charcount {
    color: rgb(105, 101, 75);
}

input.warning {
    background-color: rgb(248, 191, 145);
}

#remaining-chars.warning {
    color: rgb(211, 109, 26);
}

input.error {
    background-color: rgb(248, 157, 145);
}

#remaining-chars.error {
    color: rgb(211, 54, 26);
}